const sequelize = require("./db")
const {
    DataTypes
} = require('sequelize');

const pl = sequelize.define('Pl', {
    name: {
        type: DataTypes.STRING,
        allowNull: true
    },
    text: {
        type: DataTypes.TEXT("long"),
        allowNull: false
    },
    img: {
        type: DataTypes.STRING,
        allowNull: true
    },
    data:{
        type: DataTypes.STRING,
        allowNull: false
    },

}, {
    paranoid: true,
});


module.exports = pl;